import request from '@/utils/request'

// 查询鱼类科属列表
export function listFhFamilies(query, pageReq) {
  return request({
    url: '/act/fhFamilies/list',
    method: 'post',
    data: query,
    params: pageReq
  })
}

// 查询鱼类科属详细
export function getFhFamilies(id) {
  return request({
    url: '/act/fhFamilies/' + id,
    method: 'get'
  })
}

// 新增鱼类科属
export function addFhFamilies(data) {
  return request({
    url: '/act/fhFamilies',
    method: 'post',
    data: data
  })
}

// 修改鱼类科属
export function updateFhFamilies(data) {
  return request({
    url: '/act/fhFamilies',
    method: 'put',
    data: data
  })
}

// 删除鱼类科属
export function delFhFamilies(id) {
  return request({
    url: '/act/fhFamilies/' + id,
    method: 'delete'
  })
}

// 导出鱼类科属
export function exportFhFamilies(query) {
  return request({
    url: '/act/fhFamilies/export',
    method: 'get',
    params: query
  })
}

//列表
export function fhList() {
  return request({
    url: '/act/fhFamilies/fhList',
    method: 'get'
  })
}
